export default {
  methods: {
    checkPrem(pointName) {
      // ?. 可选链操作符
      // 如果前面有内容就执行后面的链式操作
      // 如果前面是undefined或者null直接返回
      const points = this.$store.state.user.profile.roles?.points
      console.log(99999, points)
      return points?.includes(pointName)
    }
  }
}
